package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteRegisterService {
    /**
     * 注册用户信息
     *
     * @param user 用户信息
     * @return 结果
     */
    @PostMapping("/user/register")
    public R<Boolean> registerUser(SysUser user,
                                   @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
